﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
  <xsl:output method="html" indent="yes"/>
  <xsl:template match="Posts">
    <!-- BEGIN .content-box -->
    <div class='content-box'>
      <h3>Recent Posts</h3>
      <ul class='sidelist'>
        <xsl:apply-templates/>
      </ul>
      <!-- END .content-box -->
    </div>
  </xsl:template>
  <xsl:template match="NoPost">
    <li>
        <xsl:value-of select="Title" />
    </li>
  </xsl:template>
  <xsl:template match="Post">
    <li>
      <a>
        <xsl:attribute name="href">
          <xsl:value-of select="Link"/>
        </xsl:attribute>
        <xsl:value-of select="Title" />
      </a>
      <span class='list-desc'>
        
        <xsl:value-of select="TimeAgo"/> |  <xsl:value-of select="CommentCount"/> COMMENTS(S) | by <xsl:value-of select="Author"/>
    </span>
    </li>
  </xsl:template>
</xsl:stylesheet>
